﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Invini.Training
{
    public delegate void TrainingActionEventHandler(TrainingActionBase action);
    public abstract class TrainingActionBase
    {
        public event TrainingActionEventHandler Completed;

        public abstract void Execute();
        public virtual void Clear() { }
        public virtual void Dispose()
        {
            this.Clear();
        }

        protected void onCompleted()
        {
            if (this.Completed != null)
                this.Completed(this);
        }
    }
}
